from  settings import MAX_SCORE

class Proxy(object):

    def __init__(self,ip,port,protocol=-1,nick_type=-1,speed=-1,area=None,score=MAX_SCORE,disable_domains=[]):
        # 地址，端口号，协议类型，IP匿名程度，响应速度，IP所在区域，IP评分，不可用域名的列表
        self.ip = ip
        self.port = port
        self.protocol = protocol
        self.nick_type = nick_type
        self.speed = speed
        self.area = area
        self.score = score
        self.disable_domains = disable_domains

    def __str__(self):
        return str(self.__dict__)